﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TeaClass
{
    public class Tea
    {
        public string producerCountry;
        public string teaSort;
        public int packWeight;
        public double priceFor100G;
        
        public void FillTeaInfo()
        {
            Console.WriteLine("Tea info");
            Console.Write("Enter producer country: ");
            producerCountry = Console.ReadLine();
            Console.Write("Enter tea sort: ");
            teaSort = Console.ReadLine();
            Console.Write("Enter pack weight, g: ");
            packWeight = Int32.Parse(Console.ReadLine());
            Console.Write("Enter price for 100 g, $: ");
            priceFor100G = Double.Parse(Console.ReadLine());
        }

        public void PrintteaInfo()
        {
            
            Console.WriteLine("Produser country: {0}", producerCountry);
            Console.WriteLine("Tea sort: {0}", teaSort);
            Console.WriteLine("Pack weight: {0} g", packWeight);
            Console.WriteLine("Price for 100 g: {0} $" , priceFor100G);
        }
        //public List<Tea> FillTeaList()
        //{
        //    string ch = "n";
        //    List<Tea> teaList = new List<Tea>;
        //    do
        //    {
        //        Tea newTea = new Tea();
        //        newTea.FillTeaInfo();
        //        teaList.Add(newTea);
        //        Console.WriteLine("Do you want to add new tea? y/n");
        //        ch = Console.ReadLine().ToLower();

        //        return teaList;
        //    } while (ch == "y");
        //}

    }
}
